package com.cian.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.util.Date;
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="用于查看历史记录的account对象", description="专门用于账号对象的类")
public class AccountHistoryDTO {
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "商品销售的日期")
    private Date createTime;

    @ApiModelProperty(value = "商品的销售总额")
    private Double coPrice;

    @ApiModelProperty(value = "商品的销售量")
    private Integer coStock;

    @ApiModelProperty(value = "商品的进货量")
    private Integer coInput;

    @ApiModelProperty(value = "商品的余量")
    private Integer coSurplus;

    public AccountHistoryDTO(){}

    public AccountHistoryDTO(Date createTime, Integer coStock, Double coPrice, Integer coInput, Integer coSurplus){
        this.createTime = createTime;
        this.coStock = coStock;
        this.coPrice = coPrice;
        this.coInput = coInput;
        this.coSurplus = coSurplus;
    }
}
